package com.example.rbacmanage.vo;

import com.alibaba.fastjson2.JSON;

import java.io.Serializable;

public class MsgBody implements Serializable {
    public enum MsgType {
        text,
        image,
        file,
    }
    public enum Type{
        self,
        other,
    }
    private Type type;
    private MsgType msgType;
    private String content;
    public String toJson(){
        return JSON.toJSONString(this);
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
